package com.bw.sms.listener;

import com.bw.sms.pojo.TbSmsLog;
import com.bw.sms.service.TbSmsLogService;
import com.bw.sms.service.TbSysMsgLogService;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class RiskResultListener {
    @Autowired
    private TbSmsLogService smsLogService;
    @Autowired
    private TbSysMsgLogService sysMsgLogService;
    //监听是否有消息zz
    @RabbitListener(queues = "item_note")
    public void noteMsg(String msg){
        smsLogService.noteMsg(msg);
    }
//    @RabbitListener(queues = "Register_size")
    public void registerSize(String msg){
        sysMsgLogService.registerSize(msg);
    }
}